package com.ddlaw.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ddlaw.dao.TopicDao;
import com.ddlaw.entity.TLawThemes;
import com.ddlaw.entity.TThemesComments;
import com.ddlaw.service.TopicService;
@Service
@Transactional
public class TopicServiceImpl implements TopicService{

	@Resource
	TopicDao topicDao;
	
	@Override
	public List<TLawThemes> getThemes(int typeId) {
		// TODO Auto-generated method stub
		return topicDao.getThemes(typeId);
	}

	@Override
	public List<TThemesComments> getComments(int themesid) {
		// TODO Auto-generated method stub
		return topicDao.getComments(themesid);
	}

	@Override
	public TLawThemes getThemesById(int themesid) {
		// TODO Auto-generated method stub
		return topicDao.getThemesById(themesid);
	}

	@Override
	public int delCommentById(int commentId) {
		// TODO Auto-generated method stub
		return topicDao.delCommentById(commentId);
	}

	@Override
	public int delThemeById(int themeId) {
		// TODO Auto-generated method stub
		return topicDao.delThemeById(themeId);
	}

}
